﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using VK.Comm.TransactSql;
using System.Data;
using VK.Casemeet.Areas;

namespace VK.Casemeet.Web.Admin
{
    /// <summary>
    /// CommService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    [System.Web.Script.Services.ScriptService]
    public class CommService : System.Web.Services.WebService
    {
        [WebMethod]
        public AreaEntity[] GetArea(int parentID)
        {
            return AreaBLL.GetAreaArray(parentID).ToArray();
        }

        [WebMethod]
        public int DeleteArea(int areaID)
        {
            return AreaBLL.DeleteArea(areaID);
        }

        [WebMethod]
        public int SetAreaMoveUp(int areaID)
        {
            return AreaBLL.SetAreaMoveUp(areaID);
        }

        [WebMethod]
        public int SetAreaMoveDown(int areaID)
        {
            return AreaBLL.SetAreaMoveDown(areaID);
        }
    }
}
